<!DOCTYPE html>
<html lang="en">
<head>
  {% load bootstrap4 %}
  {% bootstrap_css %}
  {% bootstrap_javascript %}
    <meta charset="UTF-8">
    <title>产品自动化平台</title>
</head>
<body role="document">
<!-- 导航栏 -->
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top">
  <div class="container">
    <a class="navbar-brand" href="#">&nbsp;</a>
    <ul class="nav justify-content-center">

    </ul>
    <ul class="nav justify-content-end">
      <li class="nav-link"><a style="color:white" href="#">{{user}}</a></li>
      <li class="nav-link"><a style="color:white" href="/logout/">退出</a></li>
    </ul>
  </div>
</nav>
<!-- 用户管理 -->
<div class="row" style="padding-top:55px;">
  <div class="col-md-11">
    <table class="table table-striped" style="table-layout: fixed">
      <thead>
      <tr>
        <th>ID</th><th>用户名</th><th>密码</th><th>邮箱</th><th>最近登录日期</th><th>注册日期</th>
      </tr>
      </thead>
      <tbody>
      {% for user in users %}
      <tr>
        <td>{{ user.id }}</td>
        <td>{{ user.username }}</td>
        <td>{{ user.password }}</td>
        <td>{{ user.email }}</td>
        <td>{{ user.last_login }}</td>
        <td>{{ user.last_joined }}</td>
      </tr>
      {% endfor %}
      </tbody>
    </table>
  </div>
</div>
</body>
</html>